// E-mail address

#ifndef _KC_ADDRESS__H_2008_KC_
#define _KC_ADDRESS__H_2008_KC_

#include <iostream>
#include <string>
#include <vector>

namespace kc_sf
{
	class Address
	{
		public:

			std::string aDisplayName;
			std::string aLocalpart;
			std::string aDomain;

			Address() {}
			Address (const std::string &localpart, const std::string &domain);

			bool equals(const Address &a) const;
			std::string toString () const;

			friend bool operator == ( const Address &a1, const Address &a2 );
			friend bool operator != ( const Address &a1, const Address &a2 );
			friend std::ostream & operator << (std::ostream &out, const Address &);
	};

	typedef std::vector<Address > AddressCollection;
}

#endif // _KC_ADDRESS__H_2008_KC_
